﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OF.Web.admin.controls
{
    public partial class head : System.Web.UI.UserControl
    {
        public int sellerid = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (WebUtils.IsLogin())
                {
                    //loginUL.Visible = true;
                    lbName.InnerHtml = WebUtils.GetName();
                    sellerid = WebUtils.GetId();
                }
                else
                {
                   // loginUL.Visible = false;
                }
            }
        }

        protected void logout_Click(object sender, EventArgs e)
        {
            WebUtils.DeleteSession();
            Response.Redirect("/admin/login.aspx");
        }
        
    }
}